<div class="content">
    <!--- Bread Crumbs Menu -->
    <div class="breadLine">
        <ul class="breadcrumb">
            <li><a href="/">Admin</a> <span class="divider">></span></li>                
            <li class="active">Calendar</li>
        </ul>
        <?php
            //echo $this->setLayout("breadcrumbs_right_menu");
        ?>
    </div>

   <div class="workplace">
        <div class="page-header">
            <i class="page-header-icon fa fa-hdd-o"></i>
            <h1>Database Configuration</h1>
        </div>   
        <div class="row-fluid">

            <div class="span6">
                <div class="head clearfix">
                    <div class="pull-left"><i class="title_icon fa fa-cloud-download"></i></div>
                    <h1>Exporting databases from the current server</h1>
                    <ul class="buttons">
                        <li class="loader export_loader" style="display:none;"><img src="/images/loaders/loader_bw.gif" title="loader_bw.gif"></li>     
                        <li class="toggle"><a href="#"></a></li>
                    </ul>
                </div>
                <div class="block-fluid">                        

                    <div class="row-form clearfix">
                        <div class="span5">Select Database:</div>
                        <div class="span7">
                            <select name="select" class="select_database" id="select_database">
                                <?php
                                /*  ===============================
                                    =====  EXPORTING_DATABASE =====
                                    =============================== */
                                    echo Exporting_Database::database_list();
                                ?>
                            </select>
                        </div>
                    </div>
                    <div class="row-form clearfix get_selected_tables" style="">
                        <div class="span12">
                            <span class="top title">Select Table Name from (<i class="put_table_name"></i>):</span>
                            <select multiple class="multiselect table_list" id="fmultiselect"></select> 
                            
                            <div class="btn-group">
                                <button class="btn btn-mini" id="multiselect-selectAll" type="button">Select All</button>
                                <button class="btn btn-mini" id="multiselect-deselectAll" type="button">Deselect All</button>                             
                            </div>        
                        </div>
                          
                    </div>    
                    <div class="footer tal">
                        <button class="btn generate_exporting">Export</button>
                    </div> 
                </div>
            </div>
            
            <div class="span6">
                <div class="head clearfix">
                    <div class="pull-left"><i class="title_icon fa fa-cogs"></i></div>
                    <h1>Configuration</h1>
                    <ul class="buttons">
                        <li class="toggle"><a href="#"></a></li>
                    </ul>
                </div>
                <div class="block-fluid">                        
                    <form id="validate" action="" method="POST">
                        <div class="row-form clearfix" style="border-top-width: 0px;">
                            <div class="span5">Current Databae:</div>
                            <div class="span7"><input type="text" value="<?php echo DB_NAME; ?>" disabled="disabled"></div>
                        </div>
                        
                        <div class="row-form clearfix" style="border-top-width: 0px;">
                            <div class="span5">Database:</div>
                            <div class="span7">
                                <input type="text" name="database_name" class="config validate[required]" placeholder="Type your new database name here...">
                                <span>Required *</span>
                            </div>
                        </div>
                        
                        <div class="row-form clearfix" style="border-top-width: 0px;">
                            <div class="span5">Database Username:</div>
                            <div class="span7">
                                <input type="text" name="database_username" class="config validate[required]" value="<?php echo DB_USERNAME; ?>" placeholder="Type your new database username here...">
                                <span>Required *</span>
                            </div>
                        </div>
                        
                        <div class="row-form clearfix" style="border-top-width: 0px;">
                            <div class="span5">Database Password:</div>
                            <div class="span7">
                                <input type="text" name="database_password" class="config validate[required]" value="<?php echo DB_PASSWORD; ?>" placeholder="Type your new database password here...">
                                <span>Required *</span>
                            </div>
                        </div>
                        
                        <div class="footer tal">
                            <button class="btn update_database_configuration">Update</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
            
        <div class="dr"><span></span></div>   
            
        <div class="row-fluid">
            <div class="span12">
                <div class="head clearfix">
                    <div class="pull-left"><i class="title_icon fa fa-cloud-upload"></i></div>
                    <h1>Importing into the current server</h1>
                    <ul class="buttons">
                        <li class="toggle"><a href="#"></a></li>
                    </ul>
                </div>
                <div class="block-fluid tabs">

                    <div class="row-form clearfix">
                        <div class="span5">Select Database:</div>
                        <div class="span7">
                            <select name="select" class="" id="">
                                <?php
                                /*  ===============================
                                    =====  EXPORTING_DATABASE =====
                                    =============================== */
                                    echo Exporting_Database::database_list();
                                ?>
                            </select>
                        </div>
                    </div>
                    <div class="row-form clearfix">
                        <div class="span5">Input file:</div>
                        <div class="span7">                                                                
                            <div class="uploader"><input type="file" name="file"><span class="filename" style="-webkit-user-select: none;">No file selected</span><span class="action" style="-webkit-user-select: none;">Choose File</span></div>
                        </div>
                    </div>
                    
                    
                    <div class="footer tal">
                        <button class="btn generate_importing">Import</button>
                    </div> 
                </div>
            </div>                

        </div>    

   </div>

</div> 